﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PDS_ANDU.GUI
{
    public partial class Anuncio : Form
    {
        public Anuncio(string titulo, string descripcion, string enlace)
        {
            InitializeComponent();
            label1.Text = titulo;
            label2.Text = descripcion;
            label3.Text = enlace;

            if(label1.Width > label2.Width)
                this.Width = label1.Width + 70;
            else
                this.Width = label2.Width + 70;
        }

        private void Anuncio_Load(object sender, EventArgs e)
        {
        }
    }
}
